
export const getstorage =(key)=>{
   return wx.getStorageSync(key)
}

export const setstorage =(key,value)=>{
    return wx.setStorageSync(key,value)
}

export const removeStorage =(key) =>{
    return wx.removeStorageSync(key)
}

export const clearStorage = () =>{
    return wx.clearStorage()
}

export const getStorageEncrypt =(key)=>{
   return wx.getStorage({
      key:key,
      encrypt:true,
   })
}

export const setstorageEncrypt =(key,value)=>{
    return wx.setstorage({
       key:key,
       value:value,
       encrypt:true
    })
}
